package com.kylin.merchant.api.web.facade;

import com.kylin.merchant.api.dto.resp.MerchantInfoRespDTO;
import com.kylin.merchant.api.dto.resp.ShopInfoRespDTO;
import com.kylin.shared.common.ResponseWrapper;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 商户平台接口
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年06月01日 10:50
 */
@RequestMapping(value = "/api_v1/merchants", produces = MediaType.APPLICATION_JSON_VALUE)
public interface MerchantPlatformFacade {

    @GetMapping("/{merchantId}")
    ResponseWrapper<MerchantInfoRespDTO> findMerchantInfoById(
            @PathVariable("merchantId")Long merchantId
    );


    @GetMapping("/{merchantId}/shop")
    ResponseWrapper<ShopInfoRespDTO> findShopInfoByMerchantId(
            @PathVariable("merchantId")Long merchantId
    );

}
